package JavaEE初阶;

import java.io.ObjectInputStream;

class Singleon{
    private static Singleon instance = new Singleon();

    public   static Singleon getInstance(){
        return instance;
    }
    public Singleon(){

    }
}


public class Demo04 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        System.out.println("使用wait()之前");
        object.wait();
        System.out.println("使用wait之后");
    }
}

